<?php
/**
* This is used as a shortcut for users.  It allows us to use the ident, rather
*       than also needing the username.
*
* @param int $ident The file to load
**/
    define("context", "redirect");

    // Load libraries.
    require_once('../../../includes.php');
    global $CFG;

    $ident = intval(required_param('ident'));
    $user = folio_user::SelectWhereIdent( $ident );

    if ( $user == false ) {
        die( __gettext('This is not a valid user.'));
    } else {
        header("Location: " . $CFG->wwwroot . $user->username );
    }
?>
